package com.service;

import com.common.pojo.LoginUser;
import com.entity.UserTable;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @description:
 * @author: GuoTong
 * @createTime: 2021-06-23 10:24
 * @since JDK 1.8 OR 11
 **/
public interface UserService {
    /**
     * Description: 无条件查询
     */
    List<UserTable> getUsers();

    /**
     * Description:条件查询
     */
    UserTable getUserById(int userId);

    /**
     * Description:分页查询
     */
    List<UserTable> getUserByLimit(int startIndex, int everyPageSize);


    /**
     * Description: 新增 返回的结果是影响行数
     */
    int insertInToUserTable(UserTable tableObj);

    /**
     * Description: 修改
     */
    int updateUserTableById(UserTable tableObj);

    /**
     * Description:删除
     */
    int deleteusertablebyid(int id);

    /**
    * Description:登录
    */
    UserTable queryForEntity(LoginUser user);

    /**
    * Description: 根据Email查询
    */
    UserTable getbyUserEmail(String userEmail);
}
